//
//  EnumTableViewCell.swift
//  EasyDana
//
//  Created by mac on 2024/10/16.
//

import UIKit

class EnumTableViewCell: UITableViewCell {

    @IBOutlet weak var nameLabel: UILabel!
    
    @IBOutlet weak var bgView: UIView!
    
    var model: AuthenItemModel.ItemEnumModel?{
        get {
            return nil
        }
        set {
            self.nameLabel.text = newValue?.th
        }
    }
    
    var choosed: Bool {
        get {
            return false
        }
        set {
            if newValue {
                self.bgView.backgroundColor = UIColor.color(with: 18, green: 107, blue: 251)
                self.nameLabel.textColor = UIColor.white
            } else {
                self.bgView.backgroundColor = UIColor.white
                self.nameLabel.textColor = UIColor.color(with: 102, green: 102, blue: 102)
            }
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
